<template>
  <div>
   <a @click="bb" href="http://baidu.com">百度</a>
   <hr>
   <a @click="dd(10,$event)" href="http://baidu.com">百度</a>
  </div>
</template>

<script>

export default {
  methods:{
    bb(e){
      console.log(1,e)
         e.preventDefault()  
    },
    dd(num,e){
      console.log(e)
      e.preventDefault()  
    }
  },

  
}
</script>

<style>

</style>
